package example;

import com.easyaop.core.AroundsImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.method.support.InvocableHandlerMethod;

@SpringBootApplication
public class Main {
    public static void main(String[] args) throws Exception{
        AroundsImpl.getInstance().add(InvocableHandlerMethod.class.getDeclaredMethod("doInvoke", Object[].class),(the, argArr, join, target)->{
            Object result = target.call();
            System.out.println(argArr+" - "+result);
            return result;
        });
        SpringApplication.run(Main.class,args);
    }
}